import router from '@/router'
import NProgress from 'nprogress'
import 'nprogress/nprogress.css'

// 进度条
NProgress.configure({ showSpinner: false })

router.beforeEach(async (to, from, next) => {
  NProgress.start();
  next()
});

// 进度条结束
router.afterEach(() => {
  NProgress.done();
});


